Merged
Conversation
ac6a5f2 to
3616419
Compare
ba5c6a5 to
7225f0e
Compare
f39505f to
88b3be1
Compare
dbanty
approved these changes
Dec 24, 2024
micha91
pushed a commit
to micha91/openapi-python-client
that referenced
this pull request
May 13, 2025
> [!IMPORTANT] > Merging this pull request will create this release ## Breaking Changes ### Delete fewer files with `--overwrite` `--overwrite` will no longer delete the entire output directory before regenerating. Instead, it will only delete specific, known directories within that directory. Right now, that is only the generated `models` and `api` directories. Other generated files, like `README.md`, will be overwritten. Extra files and directories outside of those listed above will be left untouched, so you can any extra modules or files around while still updating `pyproject.toml` automatically. Closes openapi-generators#1105. ## Features - Support httpx 0.28 (openapi-generators#1172) ### Add `generate_all_tags` config option You can now, optionally, generate **duplicate** endpoint functions/modules using _every_ tag for an endpoint, not just the first one, by setting `generate_all_tags: true` in your configuration file. ## Fixes - Support Typer 0.14 and 0.15 (openapi-generators#1173) ### Fix minimum `attrs` version The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum supported version since `openapi-python-client` 0.19.1. Closes openapi-generators#1084, thanks @astralblue! ### Fix compatibility with Pydantic 2.10+ openapi-generators#1176 by @Viicos Set `defer_build` to models that we know will fail to build, and call `model_rebuild` in the `__init__.py` file. Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Merging this pull request will create this release
Breaking Changes
Delete fewer files with
--overwrite--overwritewill no longer delete the entire output directory before regenerating. Instead, it will only deletespecific, known directories within that directory. Right now, that is only the generated
modelsandapidirectories.Other generated files, like
README.md, will be overwritten. Extra files and directories outside of those listed abovewill be left untouched, so you can any extra modules or files around while still updating
pyproject.tomlautomatically.Closes #1105.
Features
Add
generate_all_tagsconfig optionYou can now, optionally, generate duplicate endpoint functions/modules using every tag for an endpoint,
not just the first one, by setting
generate_all_tags: truein your configuration file.Fixes
Fix minimum
attrsversionThe minimum
attrsdependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimumsupported version since
openapi-python-client0.19.1.Closes #1084, thanks @astralblue!
Fix compatibility with Pydantic 2.10+
#1176 by @Viicos
Set
defer_buildto models that we know will fail to build, and callmodel_rebuildin the
__init__.pyfile.